﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///部门
    ///</summary>
    [SugarTable("DBO.t_Department")]
    public partial class t_Department
    {
        public t_Department()
        {


        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:部门代码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? DepartmentCode { get; set; }

        /// <summary>
        /// Desc:部门名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? DepartmentName { get; set; }

        /// <summary>
        /// Desc:上级部门Id
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? ParentId { get; set; }

        /// <summary>
        /// Desc:联系人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Contact { get; set; }

        /// <summary>
        /// Desc:联系电话
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ContactMobile { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Status { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Remark { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:DateTime.Now
        /// Nullable:False
        /// </summary>           
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// Desc:创建用户Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建用户名
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// Desc:创建用户Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ModifyUserId { get; set; }

        /// <summary>
        /// Desc:创建用户名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ModifyUserName { get; set; }

    }
}
